package com.ding;

import com.ding.manager.config.DTConstant;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(2) // 通过order值的大小来决定启动的顺序
 
public class InitSpringBoot implements CommandLineRunner {

	@Override
	public void run(String... args) throws Exception {
		try {
			DTConstant.getAccesToken();
			DTConstant.getSnsToken();
			DTConstant.registInstance();
		} catch (Exception e) {
		}

	}
}